<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo08表单标签</title>
</head>
<body>

<form action="#">
    用户名:<input type="text" name="username" placeholder="请输入用户名" maxlength="6" value="tom" readonly> <br>
    密码: <input type="password" name="password" placeholder="请输入密码"> <br>
    性别:
        <input type="radio" name="gender" value="1" checked>男
        <input type="radio" name="gender" value="0">女
    <br>
    爱好:
        <input type="checkbox" name="likes" value="cy">抽烟
        <input type="checkbox" name="likes" value="hj">喝酒
        <input type="checkbox" name="likes" value="tt">烫头
    <br>
    靓照:
        <input type="file" name="photo">
    <br>
    生日:
        <input type="date" name="birthday">
    <br>
    颜色:
        <input type="color" name="color">
    <br>
    范围:
        <input type="range" name="range" min="0" max="100" step="10">
    <br>
    城市:
        <select name="city">
            <option value="bj">大理</option>
            <option value="tl">昆明</option>
            <option value="nj" selected>大理</option>
        </select>
    <br>

    <!--关联效果:点击文字即可选中复选框-->
    <input type="checkbox" id="agree">
    <label for="agree">阅读并接受相关许可协议</label>
    <br>
    <input type="submit" value="注册">
    <br>
    <textarea name="content" cols="30" rows="10">请留言。。。</textarea>
    <br>
    <input type="submit" value="提交">
    <input type="reset" value="重置">
    <input type="button" value="普通按钮" onclick="alert('你是不是在点我,我问你?回答我')">

    <button onclick="alert('你点击我了，老六！！！！！')">button普通按钮</button>
</form>

</body>
</html>








